package org.nobody.mallb2c.mallorder.feign;

import org.nobody.common.utils.R;
import org.nobody.mallb2c.mallorder.vo.WareSkuLockVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * @author 3489309323@qq.com
 * @create 2020-09-22-11:45
 */
@FeignClient("mall-ware")
public interface WmsFeignService {
  @PostMapping("/mallware/waresku/hasstock")
  public R getSkusHasStock(@RequestBody List<Long> skuIds);

  @GetMapping("/mallware/wareinfo/fare")
  public R getFare(@RequestParam("addrId") Long addrId);

  @PostMapping("/mallware/waresku/lock/order")
  public R orderLockStock(@RequestBody WareSkuLockVo vo);
}
